import { useState } from 'react';
import { getData5 } from '../Data'
import { useMount, useReactive } from 'ahooks';
import { FlexGrid } from '@grapecity/wijmo.react.grid';
import { FlexGridFilter } from "@grapecity/wijmo.react.grid.filter";

const WijmoK02 = () => {
    const InitData = useReactive({})

    const [Data, setData] = useState()
    useMount(() => { setData(getData5(100)) })


    const init = (init) => {
        InitData.init = init
    }

    if (Data) {
        return (
            <div className="Page">
                <FlexGrid itemsSource={Data}>
                    <FlexGridFilter />
                </FlexGrid>
            </div>
        )
    }
};

export default WijmoK02